package com.hxzy.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/10/12 14:51
 * @Version 1.0
 */
@Configuration
public class RestTemplateLoadBalancerConfig {
    @LoadBalanced
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
